package com.fit.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.interfaces.Buy;
import com.fit.interfaces.Otkup;

public class OtkupiBean implements Otkupi{

private Map<String, Otkup> otkupi = new HashMap<String, Otkup>();
	
	public Collection<Otkup> retrieve() {
		return otkupi.values();
	}

	public Otkup save(Otkup otkup) {
		return otkupi.put(otkup.getId(), otkup);
	}
	
	public Otkup retrieveSingleOtkup(String id) {
		return otkupi.get(id);
	}
}
